package spatialmarketplace.cem.action;

import spatialmarketplace.cem.dao.CEMNotificationDao;
import spatialmarketplace.cem.dao.GroupDao;
import spatialmarketplace.cem.dao.implementation.CEMNotificationDaoImpl;
import spatialmarketplace.cem.dao.implementation.GroupDaoImpl;
import spatialmarketplace.cem.model.Group;

/**
 * Class that has the instance to the Data Access Objects and its
 * getters/setters
 * 
 * @author Laura Andreina
 */
public abstract class GroupActionBean extends BaseActionBean {

    private GroupDao groupDao = GroupDaoImpl.getInstance();
    private CEMNotificationDao notificationDao = CEMNotificationDaoImpl.getInstance();
    private Integer groupId;
    private Integer userId;
    private String name = "";

    public GroupDao getGroupDao() {
        return groupDao;
    }

    public void setGroupDao(GroupDao groupDao) {
        this.groupDao = groupDao;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }
    private Group group;

    public Group getGroup() {
        return group;
    }

    public void setGroup(Group group) {
        this.group = group;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public CEMNotificationDao getNotificationDao() {
        return notificationDao;
    }

    public void setNotificationDao(CEMNotificationDao notificationDao) {
        this.notificationDao = notificationDao;
    }
}
